-- GENERATED SPELL FOR [Elder Lake Creeper] --


function spell0_1956(pUnit, Event) --@Entangling Roots,n/a--
pUnit:FullCastSpellOnTarget(11922,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1956', 16500, 1)
end

function spell1_1956(pUnit, Event) --@Moss Covered Feet,n/a--
pUnit:FullCastSpellOnTarget(6870,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1956', 592, 1)
end

function Sorts_1956(pUnit, Event)
local choix_sorts_1956 = math.random(0, 1)
if choix_sorts_1956 == 0 then
pUnit:RegisterEvent('spell0_1956', 1, 1)
end
if choix_sorts_1956 == 1 then
pUnit:RegisterEvent('spell1_1956', 1, 1)
end
end

function mob1956_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1956', math.random(1500, 3000), 1)
end

function mob1956_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1956_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1956_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1956, 1, 'mob1956_Action')
RegisterUnitEvent(1956, 2, 'mob1956_Leave')
RegisterUnitEvent(1956, 3, 'mob1956_Kill')
RegisterUnitEvent(1956, 4, 'mob1956_Die')
